import  torch as t
a=t.ones(3)
b=a.numpy()
print("a=",a)
print("b=",b)


import numpy as np
import torch as t
a = np.ones(5)
b = t.from_numpy(a)
print("a=",a)
print("b=",b)